home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
301-325
/
disk_319
/
cnewssrc
/
cnews.orig.lzh
/
man
/
bencode.man
next >
Wrap
Text File
|
1989-06-28
|
2KB
|
67 lines
BBBBEEEENNNNCCCCOOOODDDDEEEE((((1111)))) XXXXEEEENNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((9999 JJJJaaaannnnuuuuaaaarrrryyyy 1111999988888888)))) BBBBEEEENNNNCCCCOOOODDDDEEEE((((1111))))
NNNNAAAAMMMMEEEE
bencode, bdecode - encode a binary file into printable
ASCII; decode it back into binary.
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
bbbbeeeennnnccccooooddddeeee [[[[ssssoooouuuurrrrcccceeee]]]]
bbbbddddeeeeccccooooddddeeee [[[[ssssoooouuuurrrrcccceeee]]]]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_B_e_n_c_o_d_e is used to a encode a binary file into printable
ASCII, and _b_d_e_c_o_d_e is used to decode an encoded file back
into binary. These functions are typically used to package
a binary file for mailing.
_B_e_n_c_o_d_e takes the named source file (the default is standard
input) and produces an encoded version on the standard
output. The encoding uses only the ASCII characters ``A'' -
``Z'', ``a'' - ``z'', ``0 - ``9'', ``+'', and ``-''. The
ASCII characters blank, newline, and ``/'' also appear in
the encoded file, but do not represent encoded bits. The
encoded file is terminated with a byte count and cyclic
redundancy check for detecting corrupted files.
_B_d_e_c_o_d_e reads a file encoded by bencode (the default is
standard input), strips off any leading and trailing lines
added by mailers, and writes the decoded version to standard
output.
These functions are similar to _u_u_e_n_c_o_d_e and _u_u_d_e_c_o_d_e, but
are more robust because of the CRC check and because they
don't send characters like ``^'' and ``\'', which are likely
to get mangled if the file should happen to pass through a
non-ASCII machine.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
uuencode(1)
AAAAUUUUTTTTHHHHOOOORRRRSSSS
Ken Lalonde and Reg Quinton
BBBBUUUUGGGGSSSS
The file is expanded by 35% (3 bytes become 4 plus control
information) causing it to take longer to transmit.
Page 1 (printed 6/29/89)